#include <stdio.h>

int max(int arr[], int size);
int main(){
    printf("%d", max((int[]) {3,5,111,65,8}, 5));
    return 0;
}
int max(int arr[], int size){
    int max=arr[0];
    for (int i = 0; i < size; ++i) {
        if (max < arr[i]) {
            max = arr[i];
        }
    }
    return max;
}